package edu.sctu.practice.class02.lvchang.test24;

/**
 * Created by Administrator on 2015/11/5.
 */
public class Door extends FatherDoor implements MultifunctionalDoor {
    @Override
    public void openDoor() {
        System.out.println("IronGate can open");
    }

    @Override
    public void closeDoor() {
        System.out.println("IronGate can close");
    }

    public void theftproof() {
        System.out.println("The door can be theftproof");
    }

    //防水
    public void waterproof() {
        System.out.println("The door can be waterproof");
    }

    //防弹
    public void bulletproof() {
        System.out.println("The door can be bulletproof");
    }

    public void doorFunction() {
        openDoor();
        closeDoor();
        theftproof();
        waterproof();
        bulletproof();
    }
}


//设计一张抽象的门Door，那么对于这张门来说，就应该拥有所有门的共性，开门openDoor()和关门closeDoor()；
//然后对门进行另外的功能设计,防盗--theftproof()、防水--waterproof()、防弹--bulletproof()、防火、防锈……要求：
//利用继承、抽象类、接口的知识设计该门